package com.wfuhui.modules.oms.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * 订单
 *
 */
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	//
	private Integer orderId;
	// 订单编号
	@Excel(name = "订单编号", width = 30, isImportField = "order_number")
	private String orderNumber;
	private Long userId;
	private UserEntity user;
	// 订单金额
	@Excel(name = "订单金额", width = 30, isImportField = "total_amount")
	private BigDecimal totalAmount;
	// 订单状态，1：待付款，2：代发货，3：代收货，4：已完成
	@Excel(name = "订单状态", width = 30, isImportField = "order_status", replace = { "待付款_1", "代发货_2", "代收货_3", "已完成_4" })
	private Integer orderStatus;
	// 备注
	@Excel(name = "备注", width = 30, isImportField = "remark")
	private String remark;
	// 创建时间
	@Excel(name = "创建时间", width = 30, isImportField = "create_time", exportFormat = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	private List<OrderGoodsEntity> orderGoodsList;

	private OrderShipmentEntity orderShipment;

	private String courierNum;

	/**
	 * 设置：
	 */
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	/**
	 * 获取：
	 */
	public Integer getOrderId() {
		return orderId;
	}

	/**
	 * 设置：订单编号
	 */
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	/**
	 * 获取：订单编号
	 */
	public String getOrderNumber() {
		return orderNumber;
	}

	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	/**
	 * 设置：订单状态，1：待付款，2：代发货，3：代收货，4：已完成
	 */
	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	/**
	 * 获取：订单状态，1：待付款，2：代发货，3：代收货，4：已完成
	 */
	public Integer getOrderStatus() {
		return orderStatus;
	}

	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	public List<OrderGoodsEntity> getOrderGoodsList() {
		return orderGoodsList;
	}

	public void setOrderGoodsList(List<OrderGoodsEntity> orderGoodsList) {
		this.orderGoodsList = orderGoodsList;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public OrderShipmentEntity getOrderShipment() {
		return orderShipment;
	}

	public void setOrderShipment(OrderShipmentEntity orderShipment) {
		this.orderShipment = orderShipment;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCourierNum() {
		return courierNum;
	}

	public void setCourierNum(String courierNum) {
		this.courierNum = courierNum;
	}

	public UserEntity getUser() {
		return user;
	}

	public void setUser(UserEntity user) {
		this.user = user;
	}

}
